import Button from './cg-button/main.vue'
import Input from './cg-input/main.vue'
import InputNumber from './cg-input/input-number.vue'
import Scrollbar from './cg-scrollbar/index.vue'
import Pagination from './cg-pagination/main.vue'
import Form from './cg-form/main.vue'
import Select from './cg-select/main.vue'
import Switch from './cg-switch/main.vue'
import MultipleSelect from './cg-multiple-select/main.vue'
import Checkbox from './cg-checkbox/main.vue'
import Checklist from './cg-checklist/main.vue'
import Table from './cg-table/main.vue'
import FilterRow from './cg-filter-row/main.vue'
import Image from './cg-image/main.vue'
import ImageEdit from './cg-image-edit/main.vue'
import ImageSelect from './cg-image-select/main.vue'
import Gird from './cg-gird/main.vue'
import GirdItem from './cg-gird/gird-item.vue'
import Dialog from './cg-dialog/main.vue'
import SvgIcon from './svg-icon/index'

const components = [
  SvgIcon,
  Button,
  Input,
  InputNumber,
  Form,
  Pagination,
  Select,
  Switch,
  MultipleSelect,
  Checkbox,
  Checklist,
  Table,
  FilterRow,
  Scrollbar,
  Gird,
  GirdItem,
  Dialog,
  Image,
  ImageEdit,
  ImageSelect
]

export const install = (Vue: any) =>
  components.forEach((component) => Vue.component(component.name, component))

export default {
  install
}
